<?php /*a:3:{s:55:"/www/wwwroot/car/application/admin/view/index/main.html";i:1586715668;s:56:"/www/wwwroot/car/application/admin/view/common/head.html";i:1575009678;s:56:"/www/wwwroot/car/application/admin/view/common/foot.html";i:1575009678;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title><?php echo config('sys_name'); ?>后台管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/static/plugins/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="/static/admin/css/global.css" media="all">
    <link rel="stylesheet" href="/static/common/css/font.css" media="all">
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/layer/2.3/layer.js"></script>
</head>
<body class="skin-<?php if(!empty($_COOKIE['skin'])){echo $_COOKIE['skin'];}else{echo '0';setcookie('skin','0');}?>">

<link rel="stylesheet" type="text/css" href="/static/admin/css/admin.css" />

<div class="admin-main layui-anim layui-anim-upbit">

    
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-sm6 layui-col-md4">
                    <div class="layui-card">
                        <div class="layui-card-header">
                            我的线索数
                            <!-- <span class="layui-badge layui-bg-blue layuiadmin-badge">周</span> -->
                        </div>
                        <div class="layui-card-body layuiadmin-card-list">
                            <p class="layuiadmin-big-font"><?php echo htmlentities($cluesCount_week); ?></p>
                            <p>
                                总线索
                                <span class="layuiadmin-span-color"><?php echo htmlentities($cluesCount); ?> 条</span>
                            </p>
                        </div>
                    </div>
                </div>

                <div class="layui-col-sm6 layui-col-md4">
                    <div class="layui-card">
                        <div class="layui-card-header">
                            我的客户
                            <!-- <span class="layui-badge layui-bg-cyan layuiadmin-badge">月</span> -->
                        </div>
                        <div class="layui-card-body layuiadmin-card-list">
                            <p class="layuiadmin-big-font"><?php echo htmlentities($clientCount_month); ?></p>
                            <p>
                                总客户
                                <span class="layuiadmin-span-color"><?php echo htmlentities($clientCount); ?> 个</span>
                            </p>
                        </div>
                    </div>
                </div>


                <div class="layui-col-sm6 layui-col-md4">
                    <div class="layui-card">
                        <div class="layui-card-header">
                            公海
                            <!-- <span class="layui-badge layui-bg-green layuiadmin-badge">年</span> -->
                        </div>
                        <div class="layui-card-body layuiadmin-card-list">

                            <p class="layuiadmin-big-font"><?php echo htmlentities($liberumCount); ?></p> 
                            <p>
                                总数据
                                <span class="layuiadmin-span-color"><?php echo htmlentities($liberumCount); ?> 条</span>
                            </p>
                        </div>
                    </div>
                </div>


               <!-- <div class="layui-col-sm6 layui-col-md3">
                    <div class="layui-card">
                        <div class="layui-card-header">
                            成交
                            <span class="layui-badge layui-bg-orange layuiadmin-badge">月</span>
                        </div>
                        <div class="layui-card-body layuiadmin-card-list">

                            <p class="layuiadmin-big-font">0</p>
                            <p>
                                成交率
                                <span class="layuiadmin-span-color">100% <i class="layui-inline layui-icon layui-icon-user"></i></span>
                            </p>
                        </div>
                    </div>
                </div>-->
            </div>
        </div>



    </div>
    
    
    <div class="layui-row layui-col-space15">

        <div class="layui-col-md8">
            <div class="layui-row layui-col-space15">

                <div class="layui-col-md12">

                    <div class="layui-card">
                        <div class="layui-card-header">绩效月排行</div>
                        <div class="layui-card-body">
                            <dl class="layuiadmin-card-status">
                                <table class="layui-table">
                                    <colgroup>
                                        <col width="100">
                                        <col>
                                    </colgroup>
                                    <!-- //月度排名（名）、月目标（元）、已成交（元）、完成率（%）、已成交（单）、提成点（%） -->
                                    <tbody>
                                        <tr>
                                            <td>月度排名</td>
                                            <td>业务员</td>
                                            <td>月目标（元）</td>
                                            <td>已成交（元）</td>
                                            <td>完成率（%）</td>
                                            <td>已成交（单）</td>
                                            <td>提成点（%）</td>
                                        </tr>
                                        <?php if(is_array($userlist) || $userlist instanceof \think\Collection || $userlist instanceof \think\Paginator): $k = 0; $__LIST__ = $userlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?>
                                            <tr>
                                                <td><?php echo htmlentities($k); ?></td>
                                                <td><?php echo htmlentities($vo['username']); ?></td>
                                                <td><?php echo htmlentities($vo['mubiao']); ?></td>
                                                <td><?php echo htmlentities($vo['money_month']); ?></td>
                                                <td><?php echo htmlentities($vo['wanchenglv']); ?></td>
                                                <td><?php echo htmlentities($vo['number_month']); ?></td>
                                                <td><?php echo htmlentities($vo['ticheng']); ?>%</td>
                                            </tr>
                                        <?php endforeach; endif; else: echo "" ;endif; ?>
                                    </tbody>
                                </table>

                            </dl>
                        </div>
                    </div>


                </div>
            </div>
        </div>
        <div class="layui-col-md4">
            <div class="layui-card">
                <div class="layui-card-header">今日待办</div>
                <div class="layui-card-body layui-text">
                    <table class="layui-table">
                        <colgroup>
                            <col width="150">
                            <col>
                        </colgroup>
                        <tbody>

                        <tr>
                            <td>今日已跟进</td>
                            <td>
                                <?php echo htmlentities($today_count); ?>
                            </td>
                        </tr>
                        <tr>
                            <td>未跟进个数</td>
                            <td>
                                <?php echo htmlentities($all_count); ?>
                            </td>
                        </tr>
                        <tr>
                            <td>跟进率</td>
                            <td>
                                <?php echo htmlentities($genjinlv); ?>%
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-row layui-col-space15">

        <div class="layui-col-md8">
            <div class="layui-row layui-col-space15">

                <div class="layui-col-md12">

                    <div class="layui-card">
                        <div class="layui-card-header">动态</div>
                        <div class="layui-card-body">
                            <dl class="layuiadmin-card-status">
                                
                             
                                <?php if(is_array($result) || $result instanceof \think\Collection || $result instanceof \think\Paginator): $i = 0; $__LIST__ = $result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                <dd>
                                    <div class="layui-status-img"><a href="javascript:;">
                                        <img src="<?php echo htmlentities($vo['avatar']); ?>"></a>
                                    </div>
                                    <div>  
                                        <p><?php echo htmlentities($vo['username']); ?> <em style="color: red;margin-right: 5px">跟进</em>  <a href="<?php echo url('Client/dialogue'); ?>?id=<?php echo htmlentities($vo['id']); ?>"> <?php echo htmlentities($vo['kh_name']); ?></a> </p>
                                        <p><strong style="color: burlywood;margin-right: 5px">跟进记录: </strong><?php echo htmlentities($vo['reply_msg']); ?></p>
                                        <span>跟进时间：<?php echo htmlentities(date('Y-m-d H:i:s',!is_numeric($vo['create_date'])? strtotime($vo['create_date']) : $vo['create_date'])); ?></span>
                                    </div>
                                </dd>
                                <?php endforeach; endif; else: echo "" ;endif; ?>

                            </dl>
                        </div>
                    </div>


                </div>
            </div>
        </div>
         <div class="layui-col-md4">
             <div class="layui-card">
                <div class="layui-card-header">今日跟进提醒</div>
                <div class="layui-card-body">
                    <dl class="layuiadmin-card-status">
                        
                     
                        <?php if(is_array($today_tiixng) || $today_tiixng instanceof \think\Collection || $today_tiixng instanceof \think\Paginator): $i = 0; $__LIST__ = $today_tiixng;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                        <dd>
                            <div class="layui-status-img"><a href="javascript:;">
                                <img src="<?php echo htmlentities($vo['avatar']); ?>"></a>
                            </div>
                            <div>  
                                <p><?php echo htmlentities($vo['username']); ?> <em style="color: red;margin-right: 5px">跟进</em>  <a href="<?php echo url('Client/dialogue'); ?>?id=<?php echo htmlentities($vo['id']); ?>"> <?php echo htmlentities($vo['kh_name']); ?></a> </p>
                                <span>下次跟进时间：<?php echo htmlentities(date('Y-m-d H:i:s',!is_numeric($vo['next_up_time'])? strtotime($vo['next_up_time']) : $vo['next_up_time'])); ?></span>
                            </div>
                        </dd>
                        <?php endforeach; endif; else: echo "" ;endif; ?>

                    </dl>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="/static/plugins/layui/layui.js"></script>


<script>
    layui.use('table', function() {
        var table = layui.table;
    })
</script>
</body>
</html>